
<script type="text/javascript"> 
	var cal1, cal2;      
	window.onload = function () {
	cal1  = new Epoch('epoch_popup','popup',document.getElementById('id_show_until'),false);
	cal2  = new Epoch('epoch_popup','popup',document.getElementById('id_accessible_until'),false);
};
</script>



<div class="form_container">
    {% if TheCourse %}<h1>Edit Course</h1>
    {% else %}<h1>Create Course</h1>
    {% endif %}

<form action='.' enctype="multipart/form-data" method='post'>{% csrf_token %}
    <button type="submit" class="button SaveButton" name="Save" value="SaveEdit" style="position: fixed; bottom: 0px; right: 0px; z-index: 5;" title="Save and Continue Editing">Save</button>

<table>
{{form.as_table}}
<tr>
    <td colspan="4" class="Buttons">
        <button type="submit" class="button SaveButton floatleft" name="Save" value="SaveEdit" title="Save and Continue Editing">Save and Continue</button>
        <button type="submit" class="button SaveButton floatleft" name="Save" value="SaveReturn" title="Save and Return to Page Management">Save and Return</button>
        <a class="button SaveButton" href="{% course_url management app='course' %}">Cancel</a>
    </td>
</tr>
</table>
</form>
</div>
